class UserInfo {
  int? id;
  String? uuid;
  String? phone;
  int? positionId;
  String? username;
  String? nickname;
  String? avatar;
  String? email;
  bool? gender;
  String? birthday;
  String? intro;

  UserInfo(
      {this.id,
        this.uuid,
        this.phone,
        this.positionId,
        this.username,
        this.nickname,
        this.avatar,
        this.email,
      this.gender,
      this.birthday,
      this.intro});

  UserInfo.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    uuid = json['uuid'];
    phone = json['phone'];
    positionId = json['position_id'];
    username = json['username'];
    nickname = json['nickname'];
    avatar = json['avatar'];
    email = json['email'];
    gender = json['gender'];
    birthday = json['birthday'];
    intro = json['intro'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['uuid'] = this.uuid;
    data['phone'] = this.phone;
    data['position_id'] = this.positionId;
    data['username'] = this.username;
    data['nickname'] = this.nickname;
    data['avatar'] = this.avatar;
    data['email'] = this.email;
    data['gender'] = this.gender;
    data['birthday'] = this.birthday;
    data['intro'] = this.intro;
    return data;
  }
}
